package com.lvkerry.generate.bean;

/**
 * @author Kerry
 */

public class NameBean {
    private String chineseName;
    private String englishName;
    public NameBean() {

    }
    public NameBean(String chineseName, String englishName) {
        this.chineseName = chineseName;
        this.englishName = englishName;
    }

    public String getChineseName() {
        return chineseName;
    }

    public void setChineseName(String chineseName) {
        this.chineseName = chineseName;
    }

    public String getEnglishName() {
        return englishName;
    }

    public void setEnglishName(String englishName) {
        this.englishName = englishName;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (o == null || getClass() != o.getClass()) {
            return false;
        }

        NameBean nameBean = (NameBean) o;

        return englishName != null ? englishName.equals(nameBean.englishName) : nameBean.englishName == null;
    }

    @Override
    public int hashCode() {
        return englishName != null ? englishName.hashCode() : 0;
    }

    @Override
    public String toString() {
        return "NameBean{" +
                "chineseName='" + chineseName + '\'' +
                ", englishName='" + englishName + '\'' +
                '}';
    }
}
